﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI.WebControls;

/// <summary>
///ForeignListShow 的摘要说明
/// </summary>
public class ForeignListShow:IListColumns
{
	public ForeignListShow()
	{
		//
		//TODO: 在此处添加构造函数逻辑
		//
	}

    #region IListColumns 成员

    public System.Web.UI.WebControls.DataControlField GetListField(ConfigColumns col)
    {
        HyperLinkField field = new HyperLinkField();
        field.DataTextField = col.ColumnName + "_Foreign";
        field.DataNavigateUrlFields = col.ListShowLinkBoundDataField.Split(',');
        field.DataNavigateUrlFormatString = col.ListShowLinkUrl;
        field.HeaderText = col.ListShowName;
        field.DataTextFormatString = col.ListShowFormate;
        return field;
    }

    #endregion
}
